
            	<form action="#" AjaxForm="/AdminMain/Home/DoAddLogin/"  AjaxVerify='OnChange'  AjaxSuccess="onRefresh">
            	
					<p>
                        <label for="textfield"><strong>账号</strong></label>
                        <input id="Account" name="Account" type="text"  maxlength="20" class="inputbox"> <br>
                         <span id="Accountspan" class="smltxt red"></span>
                                            </p>
                    <p>
                        <label for="errorbox"><span ><strong>新密码:</strong></span></label>
                        <input id="NewPwd" name="NewPwd"  type="password" maxlength="20"  class="inputbox"> <br>
                        <span id="NewPwdspan" class="smltxt red"></span>
                    </p>
                    <p>
                        <label for="correctbox"><span ><strong>确认新密码:</strong></span></label>
                        <input id="NewPwdtoo"  type="password" maxlength="20"   class="inputbox"> 
                    </p>
                   
                  <input type="submit" id="submitoChange" value="提  交" class="btn"> 
                </form>

<script>
$(InfoPage)
 function OnChange()
 {
 	$("#Account").removeClass("errorbox");
    if($("#Account").val()+"a"=="a")
	{
		$("#Accountspan").html("请输入账号");
		$("#Account").addClass("errorbox");
	}else
	{
		$("#Accountspan").html("");
	}
 
 	var txt="";
 	if($("#NewPwd").val()+"a"=="a")
	{
		txt="请输入新密码"
		
	}else if($("#NewPwd").val()!=$("#NewPwdtoo").val())
	{
		txt="两次输入新密码不一致"
	}else
	{
		$("#NewPwdspan").hide();
		$("#NewPwd").removeClass("errorbox");
		return true;
	}
	$("#NewPwdspan").html(txt);
	$("#NewPwdspan").show();
	$("#NewPwd").removeClass("errorbox");
	$("#NewPwd").addClass("errorbox");
	return false;
 }
 

</script>